import { pushResponseInterceptor } from 'lfun-bg-comp';

pushResponseInterceptor('get:/school/v1/school/page', r => {
  return {
    items: [
      {
        id: 1,
        planning_school_id: 1,
        school_no: 'PS001',
        school_code: 'SC001',
        school_name: '规划幼儿园A',
        borough: '110101',
        block: '110102',
        founder_type: 'regional',
        founder_type_lv2: 'jointVentureWithLegalPersonStatus',
        founder_type_lv3: 'jointVentureWithLegalPersonStatus',
        school_level: '3',
        school_operation_type: 'preSchoolEducation',
        school_operation_type_lv2: 'kindergarten',
        school_operation_type_lv3: 'attachedKindergartenClass',
        school_org_type: 'PublicOwnership',
        status: 'draft',
        school_id: 'PSID001',
      },
      {
        id: 2,
        planning_school_id: 1,
        school_no: 'PS002',
        school_code: 'SC002',
        school_name: '规划幼儿园B',
        borough: '110103',
        block: '110104',
        founder_type: 'regional',
        founder_type_lv2: 'jointVentureWithLegalPersonStatus',
        founder_type_lv3: 'jointVentureWithLegalPersonStatus',
        school_level: '4',
        school_operation_type: 'preSchoolEducation',
        school_operation_type_lv2: 'kindergarten',
        school_operation_type_lv3: 'attachedKindergartenClass',
        school_org_type: 'PublicOwnership',
        status: 'opening',
        school_id: 'PSID002',
      },
      {
        id: 3,
        planning_school_id: 1,
        school_no: 'PS003',
        school_code: 'SC003',
        school_name: '规划幼儿园C',
        borough: '110105',
        block: '110106',
        founder_type: 'regional',
        founder_type_lv2: 'jointVentureWithLegalPersonStatus',
        founder_type_lv3: 'jointVentureWithLegalPersonStatus',
        school_level: '5',
        school_operation_type: 'preSchoolEducation',
        school_operation_type_lv2: 'kindergarten',
        school_operation_type_lv3: 'attachedKindergartenClass',
        school_org_type: 'PublicOwnership',
        status: 'normal',
        school_id: 'PSID003',
      },
      {
        id: 4,
        planning_school_id: 1,
        school_no: 'PS004',
        school_code: 'SC004',
        school_name: '规划幼儿园D',
        borough: '110107',
        block: '110108',
        founder_type: 'regional',
        founder_type_lv2: 'jointVentureWithLegalPersonStatus',
        founder_type_lv3: 'jointVentureWithLegalPersonStatus',
        school_level: '1',
        school_operation_type: 'preSchoolEducation',
        school_operation_type_lv2: 'kindergarten',
        school_operation_type_lv3: 'attachedKindergartenClass',
        school_org_type: 'PublicOwnership',
        status: 'closed',
        school_id: 'PSID004',
      },
    ],
  };
});

pushResponseInterceptor('get:/school/v1/school/', r => {
  return {
    school_keyinfo: {
      school_id: 1,
      planning_school_id: 1,
      school_name: '规划幼儿园A',
      borough: '110101',
      block: '110102',
      school_no: 'SC562369322SG',
      school_operation_type: 'preSchoolEducation',
      school_operation_type_lv2: 'kindergarten',
      school_operation_type_lv3: 'attachedKindergartenClass',
      school_level: '3',
      school_org_type: 'PublicOwnership',
      school_type: 'kindergarten',
    },
    school: {
      id: 0,
      planning_school_id: 1,
      school_name: '规划幼儿园A',
      school_short_name: 'MXXX',
      school_code: 'SC562369322SG',
      create_school_date: '2021-10-10 00:00:00',
      founder_type: 'regional',
      founder_type_lv2: 'jointVentureWithLegalPersonStatus',
      founder_type_lv3: 'jointVentureWithLegalPersonStatus',
      founder_name: 'centralEducationDepartment',
      urban_rural_nature: 'urbanArea',
      school_operation_type: 'preSchoolEducation',
      school_operation_type_lv2: 'kindergarten',
      school_operation_type_lv3: 'attachedKindergartenClass',
      school_org_form: '教学点',
      school_org_type: 'PublicOwnership',
      department_unit_number: 'SC562369322SG',
      sy_zones: '110106',
      historical_evolution: 'xxxxxxxxxxxxxxxxxxxx',
      school_en_name: 'GHYEY',
      social_credit_code: '432091-83-014932-0432019',
      founder_code: 'FDSAFDSAFDS',
      school_closure_date: '2023-10-10 00:00:00',
      status: '',
    },
    school_communication: {
      id: 0,
      school_id: 1,
      postal_code: '472566',
      fax_number: '020265656',
      email: 'ddd@qq.cc',
      contact_number: '126303366',
      area_code: '0365',
      long: '223.66',
      lat: '23.65',
      leg_repr_name: 'XX',
      party_leader_name: 'YY',
      party_leader_position: 'SSSS',
      adm_leader_name: 'KKKK',
      adm_leader_position: 'DDDD',
      loc_area: 'XXXXFSDFSD',
      loc_area_pro: 'FSDFSD',
      detailed_address: 'FSDFSD',
      related_license_upload: 'https://minio.f123.pub/demo/1125927503.jpg',
      school_web_url: 'WW.SS.CC',
    },
    school_eduinfo: {
      id: 0,
      school_id: 1,
      is_ethnic_school: 'Y',
      is_att_class: 'Y',
      att_class_type: 'Y',
      is_province_feat: 'Y',
      is_bilingual_clas: 'Y',
      minority_lang_code: 'Y',
      is_profitable: 'Y',
      prof_org_name: 'xxxxxx',
      is_prov_demo: 'Y',
      is_latest_year: 'Y',
      is_town_kinderg: 'Y',
      is_incl_kinderg: 'Y',
      is_affil_school: 'Y',
      affil_univ_code: 'Y',
      affil_univ_name: 'Y',
      is_last_yr_revok: 'Y',
      is_school_counted: 'Y',
    },
  };
});

pushResponseInterceptor('/school/v1/school/baseinfo', r => {
  return {};
});
